package net.csdn.business.common.domain.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author wanghang
 * @version 1.0
 * @date 2022/9/13 16:37
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RegisterWhiteListDto {

    /**
     * 白名单类型 USERNAME、EMAIL、PHONE
     */
    @NotBlank(message = "whitelistType不能为空")
    private String whitelistType;

    /**
     * 白名单列表
     */
    @NotNull(message = "whiteList 不能为空")
    @Size(min = 1, max = 100, message = "whiteList 不合法")
    private List<String> whiteList;

}